package com.jwork.progress.pojo.dto.job;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class JobCreateDTO implements Serializable {
    @ApiModelProperty("任务执行服务类")
    @NotBlank
    private String jobClass;

    @ApiModelProperty("任务名")
    @NotBlank
    private String jobName;

    @ApiModelProperty("任务分组")
    @NotBlank
    private String group;

    @ApiModelProperty("计划任务标识")
    @NotBlank
    private String cron;

    @ApiModelProperty("启动名称")
    @NotBlank
    private String triggerName;
}
